c# format string to date yyyymmdd

30

c# format string to date yyyymmdd -

DateTime dt = DateTime.ParseExact(dateString, "ddMMyyyy", 
                                  CultureInfo.InvariantCulture);
dt.ToString("yyyyMMdd");

Comments

Submit
0 Comments